package com.link2room.rodimus.listener.event;

import com.link2room.common.dto.result.base.BaseDto;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

import javax.naming.ldap.PagedResultsControl;

/**
 * 助力分享事件
 * Created by LN on 2018/1/10
 */

public class NewMemberEvent extends BaseDto{
    public NewMemberEvent() {
    }

    public NewMemberEvent(String lhotelGroupCode , String memberNo, String salesmanNo, String from) {
        setLhotelGroupCode(lhotelGroupCode);
        this.memberNo = memberNo;
        this.salesmanNo = salesmanNo;
        this.from = from;
    }

    /**
     * 会员号
     */
    private String memberNo;
    private String salesmanNo;
    /**
     * 来源会员,助力分享
     */
    private String from;

    public String getMemberNo() {
        return memberNo;
    }

    public void setMemberNo(String memberNo) {
        this.memberNo = memberNo;
    }

    public String getSalesmanNo() {
        return salesmanNo;
    }

    public void setSalesmanNo(String salesmanNo) {
        this.salesmanNo = salesmanNo;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    @Override
    public String toString() {
        return "NewMemberEvent{" +
                "memberNo='" + memberNo + '\'' +
                ", salesmanNo='" + salesmanNo + '\'' +
                ", from='" + from + '\'' +
                '}';
    }
}
